package com.java8feature.java8action.genericBound;

import java.util.concurrent.TimeUnit;

/**
 * @Description:
 * @Author: yangzhiwei
 * @Date: 2021/5/16 15:02
 */
public class A {
    public int a = 1;
    public   synchronized  int get1(String flag) throws InterruptedException {
        System.out.println("enter " + flag);
            TimeUnit.SECONDS.sleep(20);


        return 1;
    }

    public synchronized int get2() {
        return 2;
    }
}

class B extends A {

}

class C extends B {

}
